package com.ozo.cloud.manage.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 角色权限对象
 *
 * @author qiangesoft
 * @date 2024-10-29
 */
@Schema(description = "角色权限对象")
@Data
@NoArgsConstructor
public class SysRolePermissionDTO {

    @NotNull(message = "角色id不能为空")
    @Schema(description = "角色id")
    private Long roleId;

    @NotEmpty(message = "菜单id不能为空")
    @Schema(description = "菜单id列表")
    private List<Long> menuIdList;

    @NotBlank(message = "数据权限范围不能为空")
    @Schema(description = "数据权限范围")
    private String dataScope;

    @Schema(description = "部门id列表")
    private List<Long> deptIdList;

}
